﻿<UserControl x:Class="VisualRibbonEditor.NewGroupDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" Width="600" Height="300"  Loaded="UserControl_Loaded"
    d:DesignHeight="200" d:DesignWidth="500" FontSize="12" KeyUp="NewGroupDialog_KeyUp" FocusManager.IsFocusScope="True" >

	<Border BorderBrush="Black" BorderThickness="2">
	<Grid x:Name="LayoutRoot" Background="#fcfcfc">
		<Grid.RowDefinitions>
			<RowDefinition Height="*" />
			<RowDefinition Height="40" />
		</Grid.RowDefinitions>

		<StackPanel>
			<Border Background="#eeeeee" BorderThickness="0,0,0,1" BorderBrush="#aaaaaa">
				<TextBlock Text="Insert New Ribbon Group" FontSize="14" Margin="10" />
			</Border>
			<TextBlock Text="Specify an ID for the new Group:  " VerticalAlignment="Center" Margin="20,30,0,10" />
			<StackPanel Orientation="Horizontal" Margin="20,0">
				<TextBox Name="prefixTextbox" Width="75" TextAlignment="Right"></TextBox>
				<TextBlock Name="idPrefix" VerticalAlignment="Center" Text=".crm.Form.account." Foreground="Gray" />
				<TextBox Name="IdTextbox" Width="150" KeyDown="IdTextbox_KeyDown" />
			</StackPanel>
		</StackPanel>

		<Border Grid.Row="1"  BorderThickness="0,1,0,0" BorderBrush="#aaaaaa" >
			<StackPanel Orientation="Horizontal" HorizontalAlignment="Right"   >
				<Button Name="OKButton" Content="OK" Height="22" MinWidth="65" Margin="10,0,0,0" Click="OKButton_Click" />
				<Button Name="CancelButton" Content="Cancel" Height="22" MinWidth="65" Margin="10,0,10,0" Click="CancelButton_Click" />
			</StackPanel>
		</Border>

	</Grid>
	</Border>
</UserControl>